#!/bin/bash

for i in {5..20} 
do
	./tests/casos.sh cuadricula $i $(( $i+1 )) 1 Grasp
	iters1=$(( ($i*$i)/20 ))
	iters2=$(( ($i*$i)/10 ))
	iters3=$(( ($i*$i)/4 ))

	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters1 -1 10 >> data/grasp/grasp10_ndiv4.dat	
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters2 -1 10 >> data/grasp/grasp10_ndiv2.dat
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters3 -1 10 >> data/grasp/grasp10_n.dat

	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters1 -1 30 >> data/grasp/grasp15_ndiv4.dat	
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters2 -1 30 >> data/grasp/grasp15_ndiv2.dat
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters3 -1 30 >> data/grasp/grasp15_n.dat

	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters1 -1 50 >> data/grasp/grasp20_ndiv4.dat	
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters2 -1 50 >> data/grasp/grasp20_ndiv2.dat
	./main tests/Grasp/Tp3cuadricula.in Grasp -1 $iters3 -1 50 >> data/grasp/grasp20_n.dat

done
